import QtQuick 2.8
import QtQuick.Window 2.2
import QtQuick.Controls 2.1

Page {
    id: root
    width: 300
    height: 510

    background: Image {
        source: "qrc:/images/splash.jpg"
        sourceSize.width: 300
        sourceSize.height: 510
    }

    Component.onCompleted: {
        ApplicationWindow.window.visible = false;
        ApplicationWindow.window.width = root.width;
        ApplicationWindow.window.height = root.height;
        ApplicationWindow.window.x = (Screen.desktopAvailableWidth - root.width) / 2;
        ApplicationWindow.window.y = (Screen.desktopAvailableHeight - root.height) / 2;
        ApplicationWindow.window.visible = true;
    }
}
